#!/bin/bash
filename="4.txt"
IFS=","
filec=""
min=100
max=0
sum=0
mean=0
array=(`cat $filename`)
for item in ${array[@]}
do
	sum=`expr $sum + $item`
	if [ $item -ge $max ]
	then
	max=$item
	fi
	
	if [ $item -lt $min ]
	then 
	min=$item
	fi
done

mean=`expr $sum / ${#array[@]}`
echo "该组数据的最大值为：""$max"
echo "该组数据的最小值为：""$min"
echo "该组数据的均值为：""$mean"




